package com.dodo.blog.ui.component.input;

/**
 * @author <a href="mailto:pohorelec@comvai.com">Jozef Pohorelec</a>
 */
public class EntityChoiceRenderer
        implements IChoiceRenderer
{
    @Override
    public String getValue( Object object )
    {
        return ( ( Renderable ) object ).getId().toString();
    }

    @Override
    public String getLabel( Object object )
    {
        return ( ( Renderable ) object ).getLabel();
    }
}